// pages/appointmentReferral/order/appointment/list/list.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    orderStatus: [
      {
        label: '未开始'
      },
      {
        label: '已完成'
      },
      {
        label: '已逾期'
      },
    ]
  },

  /**
   * 用户点击跳转详情
   */
  toDetail (e) {
    const status = e.currentTarget.dataset.status
    const detailMap = {
      '未开始': '/pages/appointmentReferral/order/detail/waiting/waiting',
      '已完成': '/pages/appointmentReferral/order/detail/after/after',
      '已逾期': '',
    }
    wx.navigateTo({
      url: detailMap[status],
    })
  }
})